package org.jivesoftware.smackx.pubsub;

import java.util.Collections;
import java.util.List;

public class ItemDeleteEvent extends SubscriptionEvent
{
  private List<String> itemIds = Collections.EMPTY_LIST;

  public ItemDeleteEvent(String paramString, List<String> paramList1, List<String> paramList2)
  {
    super(paramString, paramList2);
    if (paramList1 == null)
      throw new IllegalArgumentException("deletedItemIds cannot be null");
    this.itemIds = paramList1;
  }

  public List<String> getItemIds()
  {
    return Collections.unmodifiableList(this.itemIds);
  }

  public String toString()
  {
    return getClass().getName() + "  [subscriptions: " + getSubscriptions() + "], [Deleted Items: " + this.itemIds + ']';
  }
}